home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Lengths
/
Modify
/
l-rest-range-section
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
582b
|
25 lines
l-rest-range-section range section pattern
0-based
This function enables note-lengths to be changed to rest-lengths over a specified range and within a specific section.
(setq len
(qlength '((20-10111) (12-101 8-11) (20-10111) (8-1011))))
(setq range
(p-select
'(0 2 3)
(pick-rnd1 .23 :content 2
(g-integer 0 (l-count :all :content len)))))
=> ((2 5) (0 3) (4 1))
internally to: ((2 5) (0 3) (1 4))
(l-rest-range-section range '(0 2 3) len)
=> ((1/20 -1/20 -3/20) (1/12 -1/12 1/12 1/8 1/8)
(-3/20 1/20 1/20) (1/8 -3/8))